package com.itheima.Mapper;

import com.itheima.pojo.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserAddressMapper {

    /**
     * 根据ID查询用户地址
     */
    UserAddress get(@Param("id") Integer id);

    /**
     * 查询用户的默认地址
     */
    UserAddress getDefaultByUserId(@Param("userId") Integer userId);
}